package com.zzdx.deployment.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zzdx.deployment.system.mapper.InfoByPcidMapper;
import com.zzdx.deployment.system.domain.InfoByPcid;
import com.zzdx.deployment.system.service.IInfoByPcidService;
import com.zzdx.deployment.common.support.Convert;

/**
 * VIEW 服务层实现
 * 
 * @author zzdx
 * @date 2020-03-12
 */
@Service
public class InfoByPcidServiceImpl implements IInfoByPcidService 
{
	@Autowired
	private InfoByPcidMapper infoByPcidMapper;

	/**
     * 查询VIEW信息
     * 
     * @param companyId VIEWID
     * @return VIEW信息
     */
    @Override
	public InfoByPcid selectInfoByPcidById(Integer companyId)
	{
	    return infoByPcidMapper.selectInfoByPcidById(companyId);
	}
	
	/**
     * 查询VIEW列表
     * 
     * @param infoByPcid VIEW信息
     * @return VIEW集合
     */
	@Override
	public List<InfoByPcid> selectInfoByPcidList(InfoByPcid infoByPcid)
	{
	    return infoByPcidMapper.selectInfoByPcidList(infoByPcid);
	}
	
    /**
     * 新增VIEW
     * 
     * @param infoByPcid VIEW信息
     * @return 结果
     */
	@Override
	public int insertInfoByPcid(InfoByPcid infoByPcid)
	{
	    return infoByPcidMapper.insertInfoByPcid(infoByPcid);
	}
	
	/**
     * 修改VIEW
     * 
     * @param infoByPcid VIEW信息
     * @return 结果
     */
	@Override
	public int updateInfoByPcid(InfoByPcid infoByPcid)
	{
	    return infoByPcidMapper.updateInfoByPcid(infoByPcid);
	}

	/**
     * 删除VIEW对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteInfoByPcidByIds(String ids)
	{
		return infoByPcidMapper.deleteInfoByPcidByIds(Convert.toStrArray(ids));
	}
	
}
